<?php

    if(!empty($_POST['name'])){
        $module = $_POST['module'];
        $where = $_POST['name'];
        switch($module){
            case 1:
                echo "<script>alert('搜索帖子！');window.location.href='../search.php?where={$where}';</script>";
                break;
            case 2:
                break;
            case 3:
                break;
            case 4:
                break;

        }
    }else {
        echo "<script>alert('内容不能为空！');window.location.href='../index.php';</script>";
    }
